package org.agile2soft.nexoma.tapestry.encoder;

import org.agile2soft.nexoma.controller.ExpedientTypeController;
import org.agile2soft.nexoma.entity.ExpedientPhase;
import org.agile2soft.nexoma.entity.ExpedientType;
import org.hibernate.SessionFactory;

import br.com.arsmachina.module.service.PrimaryKeyTypeService;
import br.com.arsmachina.tapestrycrud.hibernate.encoder.HibernateIntegerEncoder;

public class ExpedientTypeEncoder extends HibernateIntegerEncoder<ExpedientType> {

      public ExpedientTypeEncoder(SessionFactory sessionFactory,
              ExpedientTypeController controller) {
          super(sessionFactory, controller);
    }

//    public ExpedientTypeEncoder(SessionFactory sessionFactory,
//            ExpedientTypeController controller,
//            PrimaryKeyTypeService primaryKeyTypeService) {
//        super(sessionFactory, controller,primaryKeyTypeService);
//    }


    public String toLabel(ExpedientPhase expedientPhase) {
        return expedientPhase.getName();
    }

}
